package com.yuncool.sky.system.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Auther XIE
 * @Date 2019/11/24 17:19
 * @Description RabbitMQ配置类
 * @Version 1.0
 */
@Configuration
public class RabbitConfig {
    /**
     * 选课队列
     *
     * @return
     */
    @Bean
    public Queue selectQueue() {
        return new Queue("select-queue");
    }

    /**
     * 记录队列
     *
     * @return
     */
    @Bean
    public Queue recordQueue() {
        return new Queue("record-queue");
    }
}
